package yxy.cherry.battle.module.affix.condition;

import yxy.cherry.battle.Fighter;

@AffixconditionType(Type = 1)
public class AffixCondition_01_行动者血量低于 extends AffixCondition {

	public AffixCondition_01_行动者血量低于(int param) {
		super(param);
	}

	@Override
	public boolean checkOne(Fighter actor) {
		return actor.get血量万分值() <= getParam();
	}

	@Override
	public boolean check(Fighter actor, Fighter target) {
		return checkOne(actor);
	}

	@Override
	public String toString() {
		return String.format("当行动者血量低于%s%%时", getParam() / 100);
	}

}
